package cn.wangjun.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success = true;
    private String msg = "操作成功";

    /**
     * 获取ajaxresult对象
     * @return
     */
    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}
